package com.windy.api.user;

import com.windy.app.entity.User;
import com.windy.app.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

@Component
@FeignClient("app-user")
@RestController("/user")
public interface UserClient {
    @GetMapping("/findUserByUsername")
    public Result<User> findUserByUsername(@RequestParam("username") String username);
}
